package peng.bean;

public class PageBeanAdmin {
    public String getAdminFuzzyQuery() {
        return adminFuzzyQuery;
    }

    public void setAdminFuzzyQuery(String adminFuzzyQuery) {
        this.adminFuzzyQuery = adminFuzzyQuery;
    }

    /**
     * 模糊查询
     */
    private String adminFuzzyQuery;
    /**
     * pageSize 每页的显示条数
     */
    private int pageSize = 5;
    /**
     * currentPage 当前页面
     */
    private int currentPage = 1;
    /**
     * 上一页 不明白下面计算方式，问一问
     * @return
     */
    public int getStart(){
        return (currentPage-1)*pageSize;
    }


    public int getPageSize() {
        return pageSize;
    }


    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }


    public int getCurrentPage() {
        return currentPage;
    }


    public void setCurrentPage(int currentPage) {

        this.currentPage= currentPage;
    }
}
